package cn.com.dycc.sys_manage.area.entity;

import java.io.Serializable;

public class Area implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -5501027335996099572L;
	
	private String id;
	private Integer code;
	private String province;
	private String city;
	private String district;
	private String parent;
	
	public Area(){}

	public Area(String id, Integer code, String province, String city, String district, String parent) {
		super();
		this.id = id;
		this.code = code;
		this.province = province;
		this.city = city;
		this.district = district;
		this.parent = parent;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getDistrict() {
		return district;
	}

	public void setDistrict(String district) {
		this.district = district;
	}

	public String getParent() {
		return parent;
	}

	public void setParent(String parent) {
		this.parent = parent;
	}

	@Override
	public String toString() {
		return "Area [id=" + id + ", code=" + code + ", province=" + province + ", city=" + city + ", district="
				+ district + ", parent=" + parent + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Area other = (Area) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}
	
	
	
}
